home *** CD-ROM | disk | FTP | other *** search
- Path: sn.no!usenet
- From: Ola Nohr <onohr@sn.no>
- Newsgroups: comp.lang.c++
- Subject: Calling a 16-bit DLL from a 32-bit App.
- Date: 18 Mar 1996 08:43:13 GMT
- Organization: SN Internett
- Message-ID: <4ij7n1$m7h@hasle.sn.no>
- NNTP-Posting-Host: aksess-gw-5.ppp.sn.no
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- Hello!
-
- I am porting a 16-bit application from Borland C++ 3.1 to Visual C++
- 4.0. The application uses a library that I still want to use. This
- library is 16-bit, so the question is:
-
- How do I make calls to this DLL (link it into the project) ?
-
- I tried to include the lib-file in the project, but it did'nt work.
-
-
- The headerfile that follows the 16-bit DLL has the following text
- inside:
-
- /******* IMPORTANT NOTES FOR IBM OS/2 2.0 USERS *******/
- /* QELIB is a 16-bit DLL. 32-bit applications must */
- /* take special care when calling a 16-bit DLL. First,*/
- /* all QELIB routines must be declared FAR16. Second, */
- /* any buffers passed to QELIB must not cross a 64K */
- /* boundary. This can be assured by allocating tiled */
- /* memory. */
- /******************************************************/
-
-
- Please reply by email.
-
- Thanks in advance.
-
-
- - Ola
-
-